<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>网站维护 > 主页频道管理</div>
	<form method="post" action="editdo" onsubmit="return checkform()">
		<div class="rightbody m">
			<div class="rightbodycontent">
				<table cellspacing="1" cellpadding="4" class="tableedit">
					<tr>
						<td>数据模型：</td>
						<td>
		                	<select name="datamodelid">
		                	<#list datamodels as datamodel>
		                		<option value="${datamodel.id}"<#if homepage.datamodel?? && datamodel.id == homepage.datamodel.id> selected</#if>>${datamodel.name}</option>
		                	</#list>
		                    </select>
		                </td>
					</tr>
		            <tr>
		            	<td>模板选择：</td>
						<td>
		                	<select name="template">
		                	<#list templatefiles as templatefile>
		                		<#if templatefile.name?contains('.htm') && templatefile.name?starts_with('index')>
		                			<option value="${templatefile.name}"<#if templatefile.name == homepage.template> selected</#if>>${templatefile.name}</option>
		                		</#if>
		                	</#list>
		                    </select>
		                </td>
		            </tr>
				</table>
				<input type="hidden" name="homepageid" value="${homepage.id}" />
			</div>
		</div>
		<div class="rightfoot">
			<div class="rightfootcontentnr">
	            <input type="submit" value="保 存" class="save" />
            </div>
        </div> 
	</form>
</body>
</html>